/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package javaapplication1;

import java.math.RoundingMode;
import java.text.DecimalFormat;

/**
 *
 * @author rm62102
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        double d = 2.5224;

        DecimalFormat df = new DecimalFormat("R$ 0.00");
        df.setMaximumFractionDigits(2);
        df.setRoundingMode(RoundingMode.DOWN);

        System.out.print(df.format(d));

    }

}
